<template>
    <el-main>
        <a href="javascript:void(0)" @click="openIssueReport()" target="_blank">问题统计报表</a>
    </el-main>
</template>

<script>
import Vue from "vue";

export default {
    name: `report`,
    data: function() {
        return {
        }
    },
    mounted: function() {
        console.log(process.env.NODE_ENV)
    },
    methods: {
        openIssueReport() {
            if('development' == process.env.NODE_ENV) {
                window.open("http://localhost:9090/report/issueReport", '_blank');
            } else {
                window.open("/report/issueReport", '_blank');
            }
        }
    }
};
</script>

<style scoped lang="stylus">
</style>
